package com.demo.exce;

/**
 * @Author WaveHi
 * @Date 26/7/2021 下午 3:10
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 输出乘法表
 */
public class Table99Demo {

    public static void main(String[] args) {

        //使用for循环输出乘法表
        for(int row = 1;row <= 9;row++){

            for(int col = 1;col <= row;col++){
                System.out.print(col + "X" + row + " = " + row * col + "\t");
            }
            System.out.println("");

        }

    }

}
